<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <%- include common %>
</head>
<body>
    <%- include("head",{title:"login"})%>
    <div class="container container-fluid">
        <div class="row" >
            <div class="col-md-4 col-lg-4 col-sm-4">
                <h2 class="text-primary">立即登录</h2>
                <form action="/users/login"  method="POST">
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input id="username" name="username" value= "<%- username %>" type="text" class="form-control" placeholder="请输入用户名">
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input id="password" name="password" type="password" class="form-control" placeholder="请输入密码">
                    </div>
                    <div class="form-group">
                        <a href="/register" class="link">没有账号,前往注册</a>  
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-success">登录</button>
                        <button type="reset" class="btn btn-danger">重置</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <%- include foot %>
</body>
</html>